/**
 * 实训室耗材入库 api 封装
 *
 * @Author:    xixi
 * @Date:      2024-11-08 13:31:03
 * @Copyright  🐂🐎bloc
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const consumablesInventoryApi = {

  /**
   * 分页查询  @author  xixi
   */
  queryPage : (param) => {
    return postRequest('/consumablesInventory/queryPage', param);
  },

  /**
   * 增加  @author  xixi
   */
  add: (param) => {
      return postRequest('/consumablesInventory/add', param);
  },

  /**
   * 修改  @author  xixi
   */
  update: (param) => {
      return postRequest('/consumablesInventory/update', param);
  },


  /**
   * 删除  @author  xixi
   */
  delete: (id) => {
      return getRequest(`/consumablesInventory/delete/${id}`);
  },

  /**
   * 批量删除  @author  xixi
   */
  batchDelete: (idList) => {
      return postRequest('/consumablesInventory/batchDelete', idList);
  },
    //验收
  accept: (param) => {
      return postRequest('/consumablesInventory/accept', param);
  },


};
